OPC Studio User's Guide and Reference
Combine<TFirstValue,TSecondValue,TResultValue>(ValueResult<TFirstValue>,ValueResult<TSecondValue>,Func<TFirstValue,TSecondValue,TResultValue>) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > ValueResult Class > Combine Method : Combine<TFirstValue,TSecondValue,TResultValue>(ValueResult<TFirstValue>,ValueResult<TSecondValue>,Func<TFirstValue,TSecondValue,TResultValue>) Method
The type of value of the first value result.
The type of value of the second value result.
The type of value of the resulting value result.

The value of this parameter cannot be null (Nothing in Visual Basic).

The value of this parameter cannot be null (Nothing in Visual Basic).

The value of this parameter cannot be null (Nothing in Visual Basic).

Combines two value results using a function that combines their values, where the type of the result value is independent of the type of the first and second value result.
Syntax

Parameters

first

The value of this parameter cannot be null (Nothing in Visual Basic).

second

The value of this parameter cannot be null (Nothing in Visual Basic).

combineValuesFunction

The value of this parameter cannot be null (Nothing in Visual Basic).

Type Parameters

TFirstValue
The type of value of the first value result.
TSecondValue
The type of value of the second value result.
TResultValue
The type of value of the resulting value result.

Return Value

This method never returns null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also